package com.diploma.project.aiqiyi.common.config.feign.event;

import feign.MethodMetadata;
import org.springframework.lang.Nullable;

import java.lang.reflect.Method;

public interface FeignListenerInterface {

    default void executeBefore(Method method, Object[] args, @Nullable MethodMetadata methodMetadata) {
    }

    default Object executeAfter(Method method, Object result, @Nullable MethodMetadata methodMetadata) {
        return null;
    }

    default Object executeFailure(Method method, Throwable throwable, @Nullable MethodMetadata methodMetadata) {
        return null;
    }
}
